extends "../../../azurlane_ctrl/PlaneTbf.gd"
	
func _extInit():
	._extInit()
	chaName = "「鱼雷机」TBF复仇者"
	lv = 2
	isSumm = true
	addSkill("每{cd}秒对随机2名敌人造成[雷击*2]的可暴击技能伤害", "tbf", "tbf", 8)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "tbf":
		var chas = getAllChas(1)
		chas.shuffle()
		for i in range(2):
			if i >= chas.size() : break
			var d:Eff = newEff("sk_feiDang",sprcPos)
			d._initFlyCha(chas[i])
			yield(d,"onReach")
			azurHurtChara(chas[i], att.mgiAtk*2, sys.HurtType.WEAPON, sys.AtkType.SKILL, "tbf", true)